//
//  UILabel+init.m
//  UI22_项目框架
//
//  Created by dllo on 15/7/3.
//  Copyright (c) 2015年 蓝天. All rights reserved.
//

#import "UILabel+init.h"

@implementation UILabel (init)

+ (instancetype)labelWithFram:(CGRect)frame textColor:(UIColor *)Tcolor backGoundcolor:(UIColor *)Bcolor text:(NSString *)text alignment:(NSTextAlignment)alignment
{
    UILabel *l = [[[UILabel alloc] initWithFrame:frame] autorelease];
    l.text = text;
    if (Tcolor) {
        l.textColor = Tcolor;
    }
    if (Bcolor) {
        l.backgroundColor = Bcolor;
    }
    l.textAlignment = alignment;
    return l;
}

@end
